public class Director extends Approver{
    public Director(String name) {
        super(name);
    }


    public String processRequest(PurchaseRequest request) {
        if (request.getAmount() < 50) {
            return "主任" + this.name + "审批采购单：" + request.getNumber() + "，金额：" + request.getAmount() + "元，采购目的：" + request.getPurpose() + "。";
        }
        else {
            return this.next.processRequest(request);
        }
    }

}
